/**
 * 配置编译环境和线上环境之间的切换
 * 
 * baseUrl: 域名地址
 * routerMode: 路由模式
 * baseImgPath: 图片存放地址
 * 
 */
import { API_ROOT ,IMG_ROOT,LOGIN_ROOT,BG_URl} from '../../static/lib/js/index';
let baseUrl = ''; 
let routerMode = 'hash';
let baseImgPath;
let loginPath;
let bgImg;

if (process.env.NODE_ENV == 'development') {
	// baseUrl = '';
	// baseUrl = 'http://a.chinamcloud.com/api/';
	// baseImgPath = 'http://a.chinamcloud.com/';
	baseUrl = API_ROOT;
	baseImgPath = IMG_ROOT;

	loginPath = LOGIN_ROOT;  ///跳转登录
	bgImg = BG_URl;  ///背景图 列表图url
}else{
	baseUrl = API_ROOT;
	baseImgPath =IMG_ROOT;

	loginPath = LOGIN_ROOT;///跳转登录
	bgImg = BG_URl;  ///背景图 列表图url
}

export {
	baseUrl,
	routerMode,
	baseImgPath,
	loginPath,
	bgImg
} 